package com.lottery.api.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lottery.api.service.EventsInfoService;
import com.lottery.common.dao.EventsInfoMapper;
import com.lottery.common.entity.EventsInfo;
import org.nutz.lang.util.NutMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 赛事信息表 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2019-09-23
 */
@Service
public class EventsInfoServiceImpl extends ServiceImpl<EventsInfoMapper, EventsInfo> implements EventsInfoService {
    @Resource
    private EventsInfoMapper eventsInfoMapper;

    @Override
    public EventsInfo selectEventsById(NutMap nutMap) {
        return eventsInfoMapper.selectEventsById(nutMap);
    }

    @Override
    public List<EventsInfo> selectEventsList(NutMap nutMap) {
        return eventsInfoMapper.selectEventsList(nutMap);
    }

    @Override
    public List<NutMap> selectEvents(NutMap nutMap) {
        return eventsInfoMapper.selectEvents(nutMap);
    }

    @Override
    public List<NutMap> selectEventsByTime() {
        return eventsInfoMapper.selectEventsByTime();
    }
}
